package business;

import data.HistoricoData;
import java.util.GregorianCalendar;

public class Cliente extends Utilizador{
    private String morada;
    private GregorianCalendar dataAdesao;
    private HistoricoData data;
    private boolean factElectronica;
    private boolean debitoDirecto;
    
    public Cliente(int codCliente, String passwd, String nome, String morada, GregorianCalendar dataAdesao,boolean fe,boolean dd){
        super(codCliente, passwd, nome);
        this.morada = morada;
        this.dataAdesao = (GregorianCalendar) dataAdesao.clone();
        data = new HistoricoData();
        this.factElectronica = fe; 
        this.debitoDirecto = dd;
    }

    public HistoricoData getData() {
        return data;
    }

    public GregorianCalendar getDataAdesao() {
        return dataAdesao;
    }

    public boolean isDebitoDirecto() {
        return debitoDirecto;
    }

    public boolean isFactElectronica() {
        return factElectronica;
    }

    public String getMorada() {
        return morada;
    }

    

}
